<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/corelib/io/qiodevice.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QIODevice</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QIODevice</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qiodevice.html">QIODevice class reference</a></li></ul></p>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>typedef <b><a href="qiodevice-qt3.html#Offset-typedef">Offset</a></b></li>
<li><div class="fn"/>typedef <b><a href="qiodevice-qt3.html#Status-typedef">Status</a></b></li>
</ul>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/>Offset <b><a href="qiodevice-qt3.html#at">at</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#at-2">at</a></b> ( Offset <i>offset</i> )</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#flags">flags</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#getch">getch</a></b> ()</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isAsynchronous">isAsynchronous</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isBuffered">isBuffered</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isCombinedAccess">isCombinedAccess</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isDirectAccess">isDirectAccess</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isInactive">isInactive</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isRaw">isRaw</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isSequentialAccess">isSequentialAccess</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isSynchronous">isSynchronous</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qiodevice-qt3.html#isTranslated">isTranslated</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#mode">mode</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#putch">putch</a></b> ( int <i>ch</i> )</li>
<li><div class="fn"/>qint64 <b><a href="qiodevice-qt3.html#readBlock">readBlock</a></b> ( char * <i>data</i>, quint64 <i>size</i> )</li>
<li><div class="fn"/>void <b><a href="qiodevice-qt3.html#resetStatus">resetStatus</a></b> ()</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#state">state</a></b> () const</li>
<li><div class="fn"/>Status <b><a href="qiodevice-qt3.html#status">status</a></b> () const</li>
<li><div class="fn"/>int <b><a href="qiodevice-qt3.html#ungetch">ungetch</a></b> ( int <i>ch</i> )</li>
<li><div class="fn"/>qint64 <b><a href="qiodevice-qt3.html#writeBlock">writeBlock</a></b> ( const char * <i>data</i>, quint64 <i>size</i> )</li>
<li><div class="fn"/>qint64 <b><a href="qiodevice-qt3.html#writeBlock-2">writeBlock</a></b> ( const QByteArray &amp; <i>data</i> )</li>
</ul>
<ul>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Offset-typedef"></a>typedef QIODevice::Offset</h3>
<p>Use <tt>qint64</tt> instead.</p>
<h3 class="fn"><a name="Status-typedef"></a>typedef QIODevice::Status</h3>
<p>Use <a href="qiodevice.html#OpenModeFlag-enum">QIODevice::OpenMode</a> instead, or see the documentation for specific devices.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="at"></a><a href="qiodevice-qt3.html#Offset-typedef">Offset</a> QIODevice::at () const</h3>
<p>Use <a href="qiodevice.html#pos">pos</a>() instead.</p>
<h3 class="fn"><a name="at-2"></a>bool QIODevice::at ( <a href="qiodevice-qt3.html#Offset-typedef">Offset</a> <i>offset</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use seek(<i>offset</i>) instead.</p>
<h3 class="fn"><a name="flags"></a>int QIODevice::flags () const</h3>
<p>Use <a href="qiodevice.html#openMode">openMode</a>() instead.</p>
<h3 class="fn"><a name="getch"></a>int QIODevice::getch ()</h3>
<p>Use <a href="qiodevice.html#getChar">getChar</a>() instead.</p>
<h3 class="fn"><a name="isAsynchronous"></a>bool QIODevice::isAsynchronous () const</h3>
<p>This functionality is no longer available. This function always returns true.</p>
<h3 class="fn"><a name="isBuffered"></a>bool QIODevice::isBuffered () const</h3>
<p>Use !(<a href="qiodevice.html#openMode">openMode</a>() &amp; <a href="qiodevice.html#OpenModeFlag-enum">QIODevice::Unbuffered</a>) instead.</p>
<h3 class="fn"><a name="isCombinedAccess"></a>bool QIODevice::isCombinedAccess () const</h3>
<p>Use <a href="qiodevice.html#openMode">openMode</a>() instead.</p>
<h3 class="fn"><a name="isDirectAccess"></a>bool QIODevice::isDirectAccess () const</h3>
<p>Use !<a href="qiodevice.html#isSequential">isSequential</a>() instead.</p>
<h3 class="fn"><a name="isInactive"></a>bool QIODevice::isInactive () const</h3>
<p>Use <a href="qiodevice.html#isOpen">isOpen</a>(), <a href="qiodevice.html#isReadable">isReadable</a>(), or <a href="qiodevice.html#isWritable">isWritable</a>() instead.</p>
<h3 class="fn"><a name="isRaw"></a>bool QIODevice::isRaw () const</h3>
<p>Use <a href="qiodevice.html#openMode">openMode</a>() instead.</p>
<h3 class="fn"><a name="isSequentialAccess"></a>bool QIODevice::isSequentialAccess () const</h3>
<p>Use <a href="qiodevice.html#isSequential">isSequential</a>() instead.</p>
<h3 class="fn"><a name="isSynchronous"></a>bool QIODevice::isSynchronous () const</h3>
<p>This functionality is no longer available. This function always returns false.</p>
<h3 class="fn"><a name="isTranslated"></a>bool QIODevice::isTranslated () const</h3>
<p>Use <a href="qiodevice.html#openMode">openMode</a>() instead.</p>
<h3 class="fn"><a name="mode"></a>int QIODevice::mode () const</h3>
<p>Use <a href="qiodevice.html#openMode">openMode</a>() instead.</p>
<h3 class="fn"><a name="putch"></a>int QIODevice::putch ( int <i>ch</i> )</h3>
<p>Use putChar(<i>ch</i>) instead.</p>
<h3 class="fn"><a name="readBlock"></a><a href="qtglobal.html#qint64-typedef">qint64</a> QIODevice::readBlock ( char * <i>data</i>, <a href="qtglobal.html#quint64-typedef">quint64</a> <i>size</i> )</h3>
<p>Use read(<i>data</i>, <i>size</i>) instead.</p>
<h3 class="fn"><a name="resetStatus"></a>void QIODevice::resetStatus ()</h3>
<p>For device specific error handling, please refer to the individual device documentation.</p>
<p>See also <a href="qobject.html#qobject_cast">qobject_cast</a>().</p>
<h3 class="fn"><a name="state"></a>int QIODevice::state () const</h3>
<p>Use <a href="qiodevice.html#isOpen">isOpen</a>() instead.</p>
<h3 class="fn"><a name="status"></a><a href="qiodevice-qt3.html#Status-typedef">Status</a> QIODevice::status () const</h3>
<p>For device specific error handling, please refer to the individual device documentation.</p>
<p>See also <a href="qobject.html#qobject_cast">qobject_cast</a>().</p>
<h3 class="fn"><a name="ungetch"></a>int QIODevice::ungetch ( int <i>ch</i> )</h3>
<p>Use ungetChar(<i>ch</i>) instead.</p>
<h3 class="fn"><a name="writeBlock"></a><a href="qtglobal.html#qint64-typedef">qint64</a> QIODevice::writeBlock ( const char * <i>data</i>, <a href="qtglobal.html#quint64-typedef">quint64</a> <i>size</i> )</h3>
<p>Use write(<i>data</i>, <i>size</i>) instead.</p>
<h3 class="fn"><a name="writeBlock-2"></a><a href="qtglobal.html#qint64-typedef">qint64</a> QIODevice::writeBlock ( const <a href="qbytearray.html">QByteArray</a> &amp; <i>data</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use write(<i>data</i>) instead.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
